function removeHtmlTag(a, b) {  
    var s = a.split("<");  
    for (var i = 0; i < s.length; i++) {  
        if (s[i].indexOf(">") != -1) {  
            s[i] = s[i].substring(s[i].indexOf(">") + 1, s[i].length)  
        }  
    }  
    s = s.join("");  
    s = s.substring(0, b - 1);  
    return s  
}  
function showrecentposts(e) {  
    img = new Array();  
    for (var i = 0; i < numposts; i++) {  
        var f = e.feed.entry[i];  
        var g = f.title.$t;  
        var h;  
        if (i == e.feed.entry.length) break;  
        for (var k = 0; k < f.link.length; k++) {  
            if (f.link[k].rel == 'alternate') {  
                h = f.link[k].href;  
                break  
            }  
        }  
        if ("content" in f) {  
            var j = f.content.$t  
        } else if ("summary" in f) {  
            var j = f.summary.$t  
        } else  
        var j = "";  
        s = j;  
        a = s.indexOf("<img");  
        b = s.indexOf("src=\"", a);  
        c = s.indexOf("\"", b + 5);  
        d = s.substr(b + 5, c - b - 5);  
        if ((a != -1) && (b != -1) && (c != -1) && (d != ""))  {img[i] = d;} else {img[i]="http://2.bp.blogspot.com/_ld3_SH0HONs/S3Kk2zJyiFI/AAAAAAAABS4/sxAWX6DrS_A/s1600/img1.jpg";}  
        var l = '<table border="0" cellpadding="0" cellspacing="0" style="margin-bottom:5px;border-bottom:double #eee"><tr><td><img width="180" height="140" src="' + img[i] + '" align="left" border="1px solid #ccc" padding:1px title="' + g + '" alt="' + g + '" style="margin:5px 10px 0 0"><a href="' + h + '" style="color:'+maintitle+'"><b>' + g + '</b></a><p style="margin:0;padding:5px 0 10px">' + removeHtmlTag(j, sumPosts) + ' ...</p></td></tr></table>';  
        var m = '<li><a href="' + h + '" style="color:'+subtitle+'">' + g + '</a></li>';  
        if ((i >= 0) && (i < list1)) {  
            var n = l  
        }  
        if (i == list1) {  
            var n = '<div class="kythuatcongtrinh-rc"><ul>' + m  
        }  
        if ((i > list1) && (i < numposts - 1)) {  
            var n = m  
        }  
        if (i == numposts - 1) {  
            var n = m + '</ul></div>'  
        }  
        document.write(n)  
    }  
}  
document.write("<script src=\""+home_page+"feeds/posts/default/-/"+label+"?max-results="+numposts+"&orderby=published&alt=json-in-script&callback=showrecentposts\"><\/script>");